<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/details/ftp.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../dir_b485ae80868baed16097635ed27c0024.html">details</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">ftp.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;thread&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;regex&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;sstream&gt;</code><br />
<code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;curl/curl.h&gt;</code><br />
<code>#include &quot;<a class="el" href="../../d5/d3a/url_8hpp_source.html">url.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d0/d0e/misc_8hpp_source.html">misc.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../df/df5/details_2ftp_8hpp_source.html">details/ftp.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
ftp.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dfa/details_2ftp_8cpp__incl.png" border="0" usemap="#asrc_2details_2ftp_8cpp" alt=""/></div>
<map name="asrc_2details_2ftp_8cpp" id="asrc_2details_2ftp_8cpp">
<area shape="rect" title=" " alt="" coords="735,5,860,32"/>
<area shape="rect" title=" " alt="" coords="5,80,73,107"/>
<area shape="poly" title=" " alt="" coords="735,24,458,39,276,56,88,82,88,77,275,51,457,34,735,19"/>
<area shape="rect" title=" " alt="" coords="97,80,154,107"/>
<area shape="poly" title=" " alt="" coords="735,26,488,43,331,60,174,83,170,83,169,78,173,77,331,55,488,38,734,20"/>
<area shape="rect" title=" " alt="" coords="185,379,256,405"/>
<area shape="poly" title=" " alt="" coords="735,25,585,34,495,44,406,58,324,77,256,101,231,115,211,131,199,148,195,167,195,244,202,308,215,363,209,364,196,309,190,244,190,166,194,146,207,127,228,111,254,96,322,71,405,53,495,39,584,29,734,19"/>
<area shape="rect" title=" " alt="" coords="931,80,1006,107"/>
<area shape="poly" title=" " alt="" coords="828,30,925,71,923,76,826,35"/>
<area shape="rect" title=" " alt="" coords="1030,80,1083,107"/>
<area shape="poly" title=" " alt="" coords="847,30,1016,77,1014,82,845,35"/>
<area shape="rect" title=" " alt="" coords="1107,80,1171,107"/>
<area shape="poly" title=" " alt="" coords="861,29,1093,77,1092,82,860,34"/>
<area shape="rect" title=" " alt="" coords="1194,80,1262,107"/>
<area shape="poly" title=" " alt="" coords="861,25,1003,45,1179,77,1178,82,1002,51,860,30"/>
<area shape="rect" title=" " alt="" coords="1184,155,1249,181"/>
<area shape="poly" title=" " alt="" coords="807,31,834,68,854,88,876,104,916,123,951,135,983,140,1015,142,1081,143,1120,145,1165,152,1169,153,1168,158,1164,157,1120,151,1081,148,1014,147,983,145,950,140,914,128,874,109,850,92,830,72,803,34"/>
<area shape="rect" title=" " alt="" coords="1273,155,1352,181"/>
<area shape="poly" title=" " alt="" coords="815,30,869,72,920,104,968,121,1010,131,1084,139,1161,141,1258,152,1257,157,1161,146,1084,144,1009,136,966,126,918,109,866,77,812,35"/>
<area shape="rect" href="../../d5/d3a/url_8hpp.html" title=" " alt="" coords="553,80,613,107"/>
<area shape="poly" title=" " alt="" coords="761,35,629,79,627,74,759,30"/>
<area shape="rect" href="../../d0/d0e/misc_8hpp.html" title=" " alt="" coords="472,155,547,181"/>
<area shape="poly" title=" " alt="" coords="735,30,624,50,574,65,542,82,532,94,524,109,515,140,510,139,519,107,527,91,539,78,572,60,622,45,734,25"/>
<area shape="rect" href="../../df/df5/details_2ftp_8hpp.html" title=" " alt="" coords="702,80,805,107"/>
<area shape="poly" title=" " alt="" coords="792,34,771,68,767,65,788,31"/>
<area shape="rect" title=" " alt="" coords="667,304,720,331"/>
<area shape="poly" title=" " alt="" coords="592,106,683,289,678,291,587,108"/>
<area shape="rect" title=" " alt="" coords="402,155,449,181"/>
<area shape="poly" title=" " alt="" coords="557,110,464,152,462,147,554,105"/>
<area shape="poly" title=" " alt="" coords="572,109,535,145,531,142,568,105"/>
<area shape="poly" title=" " alt="" coords="473,181,276,232,253,261,238,297,229,333,225,364,219,363,224,331,233,295,249,259,274,227,471,176"/>
<area shape="poly" title=" " alt="" coords="517,180,536,216,551,236,567,254,604,275,654,297,652,302,601,280,564,258,546,240,532,219,512,183"/>
<area shape="rect" title=" " alt="" coords="747,453,824,480"/>
<area shape="poly" title=" " alt="" coords="473,184,414,207,354,241,331,261,317,282,312,305,321,329,347,353,388,376,441,395,501,412,626,439,732,456,731,461,625,444,499,418,439,400,386,380,344,358,317,332,307,305,312,280,328,257,351,236,412,202,471,179"/>
<area shape="rect" title=" " alt="" coords="745,304,802,331"/>
<area shape="poly" title=" " alt="" coords="533,180,739,294,737,299,531,184"/>
<area shape="rect" href="../../d8/d68/fs_8hpp.html" title=" " alt="" coords="438,229,496,256"/>
<area shape="poly" title=" " alt="" coords="505,183,484,217,480,215,500,181"/>
<area shape="poly" title=" " alt="" coords="497,251,653,300,651,305,495,256"/>
<area shape="poly" title=" " alt="" coords="482,255,499,276,514,303,516,319,514,334,504,359,497,381,498,392,505,404,519,415,541,425,601,442,669,453,732,459,731,464,668,458,600,447,539,430,516,420,501,407,493,394,492,380,499,357,509,332,511,319,508,305,495,279,478,258"/>
<area shape="rect" title=" " alt="" coords="331,304,411,331"/>
<area shape="poly" title=" " alt="" coords="452,259,401,297,398,292,449,254"/>
<area shape="rect" title=" " alt="" coords="435,304,499,331"/>
<area shape="poly" title=" " alt="" coords="470,257,470,288,464,288,464,257"/>
<area shape="rect" href="../../de/dfd/tree_8hpp.html" title=" " alt="" coords="574,304,642,331"/>
<area shape="poly" title=" " alt="" coords="493,254,571,294,569,299,490,259"/>
<area shape="poly" title=" " alt="" coords="574,328,272,384,271,379,573,322"/>
<area shape="poly" title=" " alt="" coords="625,329,761,441,757,445,622,333"/>
<area shape="rect" title=" " alt="" coords="950,379,1018,405"/>
<area shape="poly" title=" " alt="" coords="644,325,656,328,794,352,935,375,935,381,793,357,654,333,642,331"/>
<area shape="rect" title=" " alt="" coords="734,379,802,405"/>
<area shape="poly" title=" " alt="" coords="637,329,728,369,726,374,635,334"/>
<area shape="rect" title=" " alt="" coords="514,379,553,405"/>
<area shape="poly" title=" " alt="" coords="597,333,559,370,555,366,593,329"/>
<area shape="rect" title=" " alt="" coords="576,379,659,405"/>
<area shape="poly" title=" " alt="" coords="613,331,617,363,611,364,607,332"/>
<area shape="rect" href="../../d6/de9/typetraits_8hpp.html" title=" " alt="" coords="826,379,926,405"/>
<area shape="poly" title=" " alt="" coords="644,325,815,372,814,377,642,331"/>
<area shape="poly" title=" " alt="" coords="862,408,815,446,811,442,859,404"/>
<area shape="poly" title=" " alt="" coords="806,101,825,104,995,126,1165,152,1169,153,1168,158,1164,157,994,132,824,109,805,106"/>
<area shape="poly" title=" " alt="" coords="806,97,1032,122,1258,152,1257,157,1031,127,806,103"/>
<area shape="poly" title=" " alt="" coords="740,109,720,129,704,156,694,190,690,226,692,289,687,289,685,226,689,189,699,154,716,126,736,105"/>
<area shape="poly" title=" " alt="" coords="712,110,562,154,561,149,710,105"/>
<area shape="poly" title=" " alt="" coords="806,100,999,130,1122,152,1139,172,1147,192,1148,241,1148,319,1146,338,1141,353,1121,375,1093,391,1059,408,1003,432,945,448,889,459,840,465,840,460,888,454,944,443,1002,427,1057,403,1091,386,1118,371,1136,350,1141,336,1143,319,1143,241,1142,193,1135,175,1119,157,998,135,806,105"/>
<area shape="poly" title=" " alt="" coords="807,102,857,120,882,135,904,153,926,191,948,249,980,363,975,364,943,251,922,194,900,156,879,139,855,125,805,107"/>
<area shape="rect" title=" " alt="" coords="724,155,784,181"/>
<area shape="poly" title=" " alt="" coords="756,107,756,139,751,139,751,107"/>
<area shape="rect" href="../../d3/df7/ary__str_8hpp.html" title=" " alt="" coords="726,229,813,256"/>
<area shape="poly" title=" " alt="" coords="742,109,718,142,711,161,714,180,726,201,742,218,738,221,721,204,708,182,706,160,713,139,738,106"/>
<area shape="rect" href="../../df/d78/tribool_8hpp.html" title=" " alt="" coords="808,155,889,181"/>
<area shape="poly" title=" " alt="" coords="772,105,822,143,818,147,769,109"/>
<area shape="rect" href="../../dc/d8b/file_svr_itfc_8hpp.html" title=" " alt="" coords="964,155,1108,181"/>
<area shape="poly" title=" " alt="" coords="804,105,973,148,971,153,802,110"/>
<area shape="poly" title=" " alt="" coords="758,258,719,295,716,291,755,255"/>
<area shape="poly" title=" " alt="" coords="773,256,775,288,769,289,768,257"/>
<area shape="poly" title=" " alt="" coords="1043,181,1055,223,1064,283,1065,316,1060,348,1050,379,1033,407,1020,418,1001,427,951,443,840,462,839,457,950,438,999,422,1017,413,1029,404,1046,377,1055,347,1059,315,1059,283,1050,224,1038,183"/>
<area shape="poly" title=" " alt="" coords="991,184,828,228,827,223,989,179"/>
<area shape="rect" title=" " alt="" coords="964,229,1028,256"/>
<area shape="poly" title=" " alt="" coords="1032,183,1013,217,1008,214,1027,181"/>
</map>
</div>
</div>
<p><a href="../../de/d8b/details_2ftp_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ad907952d4633c663a0140a166182e127" id="r_ad907952d4633c663a0140a166182e127"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad907952d4633c663a0140a166182e127">onChkInst</a> (char *buffer, size_t size, size_t nitems, void *userdata)</td></tr>
<tr class="memdesc:ad907952d4633c663a0140a166182e127"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查服务器支持的指令操作数据回调函数。这个函数有CURL调用  <br /></td></tr>
<tr class="separator:ad907952d4633c663a0140a166182e127"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad30d7938b76217dec401f1e4872fe70e" id="r_ad30d7938b76217dec401f1e4872fe70e"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad30d7938b76217dec401f1e4872fe70e">onConnectCb</a> (char *ptr, size_t, size_t nmemb, void *userdata)</td></tr>
<tr class="memdesc:ad30d7938b76217dec401f1e4872fe70e"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接成功操作回调函数  <br /></td></tr>
<tr class="separator:ad30d7938b76217dec401f1e4872fe70e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c938fd613f155400fd8332835359f7c" id="r_a1c938fd613f155400fd8332835359f7c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1c938fd613f155400fd8332835359f7c">ftp_write_callback</a> (char *ptr, size_t size, size_t nmemb, void *userdata)</td></tr>
<tr class="memdesc:a1c938fd613f155400fd8332835359f7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">CURL 本地写入回调函数  <br /></td></tr>
<tr class="separator:a1c938fd613f155400fd8332835359f7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acacdb16f13dfa548fed1489bb0377672" id="r_acacdb16f13dfa548fed1489bb0377672"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acacdb16f13dfa548fed1489bb0377672">ftp_write_cb_data</a> (char *ptr, size_t size, size_t nmemb, void *userdata)</td></tr>
<tr class="separator:acacdb16f13dfa548fed1489bb0377672"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ae893c969c2ac5d8ba25739abc68730" id="r_a5ae893c969c2ac5d8ba25739abc68730"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5ae893c969c2ac5d8ba25739abc68730">ftp_read_callback</a> (char *buffer, size_t size, size_t nitems, void *userdata)</td></tr>
<tr class="memdesc:a5ae893c969c2ac5d8ba25739abc68730"><td class="mdescLeft">&#160;</td><td class="mdescRight">本地读取数据回调函数  <br /></td></tr>
<tr class="separator:a5ae893c969c2ac5d8ba25739abc68730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7f64eceebc17730a633c60e90147b75" id="r_af7f64eceebc17730a633c60e90147b75"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af7f64eceebc17730a633c60e90147b75">on_upld_progress</a> (void *clientp, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow)</td></tr>
<tr class="separator:af7f64eceebc17730a633c60e90147b75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57c3e910f6269807ad612ff5b4b281c8" id="r_a57c3e910f6269807ad612ff5b4b281c8"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a57c3e910f6269807ad612ff5b4b281c8">on_ftp_size</a> (char *ptr, size_t size, size_t nmemb, void *userdata)</td></tr>
<tr class="memdesc:a57c3e910f6269807ad612ff5b4b281c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">查询文件大小的回调操作函数  <br /></td></tr>
<tr class="separator:a57c3e910f6269807ad612ff5b4b281c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe03125733ec7a3f07754578f06a3781" id="r_abe03125733ec7a3f07754578f06a3781"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abe03125733ec7a3f07754578f06a3781">on_nlist</a> (char *ptr, size_t size, size_t nmemb, void *userdata)</td></tr>
<tr class="memdesc:abe03125733ec7a3f07754578f06a3781"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取文件列表的回调操作函数  <br /></td></tr>
<tr class="separator:abe03125733ec7a3f07754578f06a3781"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a5ae893c969c2ac5d8ba25739abc68730" name="a5ae893c969c2ac5d8ba25739abc68730"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ae893c969c2ac5d8ba25739abc68730">&#9670;&#160;</a></span>ftp_read_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ftp_read_callback </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>buffer</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nitems</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>本地读取数据回调函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html#l00136">136</a> 行定义.</p>

</div>
</div>
<a id="a1c938fd613f155400fd8332835359f7c" name="a1c938fd613f155400fd8332835359f7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c938fd613f155400fd8332835359f7c">&#9670;&#160;</a></span>ftp_write_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ftp_write_callback </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CURL 本地写入回调函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr[</td><td>I ] 数据指针 </td></tr>
    <tr><td class="paramname">size[</td><td>I ] 总是是 1 </td></tr>
    <tr><td class="paramname">nmemb[</td><td>I ] 数据长度 </td></tr>
    <tr><td class="paramname">userdata[</td><td>I ] 用户定义数量 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>接收到数据长度 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html#l00074">74</a> 行定义.</p>

</div>
</div>
<a id="acacdb16f13dfa548fed1489bb0377672" name="acacdb16f13dfa548fed1489bb0377672"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acacdb16f13dfa548fed1489bb0377672">&#9670;&#160;</a></span>ftp_write_cb_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ftp_write_cb_data </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html#l00100">100</a> 行定义.</p>

</div>
</div>
<a id="a57c3e910f6269807ad612ff5b4b281c8" name="a57c3e910f6269807ad612ff5b4b281c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57c3e910f6269807ad612ff5b4b281c8">&#9670;&#160;</a></span>on_ftp_size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t on_ftp_size </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>查询文件大小的回调操作函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html#l00176">176</a> 行定义.</p>

</div>
</div>
<a id="abe03125733ec7a3f07754578f06a3781" name="abe03125733ec7a3f07754578f06a3781"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe03125733ec7a3f07754578f06a3781">&#9670;&#160;</a></span>on_nlist()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t on_nlist </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取文件列表的回调操作函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html#l00189">189</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d8b/details_2ftp_8cpp_abe03125733ec7a3f07754578f06a3781_icgraph.png" border="0" usemap="#ade/d8b/details_2ftp_8cpp_abe03125733ec7a3f07754578f06a3781_icgraph" alt=""/></div>
<map name="ade/d8b/details_2ftp_8cpp_abe03125733ec7a3f07754578f06a3781_icgraph" id="ade/d8b/details_2ftp_8cpp_abe03125733ec7a3f07754578f06a3781_icgraph">
<area shape="rect" title="获取文件列表的回调操作函数" alt="" coords="182,31,248,57"/>
<area shape="rect" href="../../d4/d31/classwheels_1_1curl_ftp.html#a668a31959802c883c07febdaf0da8e47" title="列出远程目录内容" alt="" coords="5,5,134,32"/>
<area shape="poly" title=" " alt="" coords="166,38,134,33,134,27,167,33"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#a2e31484259747fa3449446a005e92f53" title="列出远程目录内容" alt="" coords="10,56,129,83"/>
<area shape="poly" title=" " alt="" coords="167,55,129,62,128,56,166,50"/>
</map>
</div>

</div>
</div>
<a id="af7f64eceebc17730a633c60e90147b75" name="af7f64eceebc17730a633c60e90147b75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7f64eceebc17730a633c60e90147b75">&#9670;&#160;</a></span>on_upld_progress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int on_upld_progress </td>
          <td>(</td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>clientp</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">curl_off_t</td>          <td class="paramname"><span class="paramname"><em>dltotal</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">curl_off_t</td>          <td class="paramname"><span class="paramname"><em>dlnow</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">curl_off_t</td>          <td class="paramname"><span class="paramname"><em>ultotal</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">curl_off_t</td>          <td class="paramname"><span class="paramname"><em>ulnow</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html#l00154">154</a> 行定义.</p>

</div>
</div>
<a id="ad907952d4633c663a0140a166182e127" name="ad907952d4633c663a0140a166182e127"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad907952d4633c663a0140a166182e127">&#9670;&#160;</a></span>onChkInst()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t onChkInst </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>buffer</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nitems</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查服务器支持的指令操作数据回调函数。这个函数有CURL调用 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">buffer[</td><td>IN ] 传入的数据的内容指针 </td></tr>
    <tr><td class="paramname">size[</td><td>IN ] 总是为1 </td></tr>
    <tr><td class="paramname">nitems[</td><td>IN ] 传入的数据的长度 </td></tr>
    <tr><td class="paramname">userdata[</td><td>IN ] FTP对象指针，用来获取调用的 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>操作成功返回nitems，否则返回0以告诉CURL操作错误 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html#l00040">40</a> 行定义.</p>

</div>
</div>
<a id="ad30d7938b76217dec401f1e4872fe70e" name="ad30d7938b76217dec401f1e4872fe70e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad30d7938b76217dec401f1e4872fe70e">&#9670;&#160;</a></span>onConnectCb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t onConnectCb </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em></em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>连接成功操作回调函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/d8b/details_2ftp_8cpp_source.html#l00053">53</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
